<template>
  <view>
    <view v-if="isWeChat">
      <u-gap height="150px" v-if="config"/>
      <view class="banner-ad-container" v-if="config">
        <ad :unit-id="config.provider_ad_id" ad-intervals="30"/>
      </view>
    </view>
  </view>
</template>

<script>
  import UGap from "../../uni_modules/uview-ui/components/u-gap/u-gap.vue";

  export default {
		name: "banner-ad",
    components: {UGap},
		data() {
			return {
        isWeChat: process.env.UNI_PLATFORM === 'wechat' || process.env.UNI_PLATFORM === 'mp-weixin',
      };
		},
		props: ['config'],
		methods: {

		}
	}
</script>

<style lang="scss">
</style>
